package com.norbitltd.guavaleaves.java.lang;

import com.google.common.base.Function;

public class ComparableFunctions extends ObjectFunctions {
	public static <T> Function<Comparable<T>, Integer> compareTo(final T comparedObject){
		return new Function<Comparable<T>, Integer>() {
			public Integer apply(Comparable<T> input) {
				return input.compareTo(comparedObject);
			}
		};
	}
}
